package StudyCode.summary.Basic.mystring;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StrToBoolean {

	public static void main(String[] args) {
		String str = "false";

		System.out.println("方法1:new Boolean():" + new Boolean(str));
		System.out.println("方法2:Boolean.parseBoolean():" + Boolean.parseBoolean(str));
		System.out.println("方法3:Boolean.valueOf():" + Boolean.valueOf(str));
		System.out.println("方法4:Boolean.getBoolean():" + Boolean.getBoolean(str));
	}
}
